package com.xcfw.dorm.mapper;

import com.xcfw.dorm.entity.Assistant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssistantMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Assistant record);

    Assistant selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Assistant record);

    List<Assistant> selectActionSql(@Param("schoolId") String schoolId,
                                    @Param("name") String name,
                                    @Param("password") String password);

    Integer selectAutoId();

    Integer selectLogin(@Param("schoolId") String schoolId,
                        @Param("name") String name,
                        @Param("password") String password);
}